// 用量类型

export interface AmountType {
  id?: number;
  name: string;
  tasteId?: number;
}

export interface AmountPageResponse extends ResponseData {
  data: AmountPageType;
}

export interface AmountPageType {
  total: number;
  records: AmountType[];
}

export interface AmountResponse extends ResponseData {
  data: AmountType;
}

export interface AmountEditResponse extends ResponseData {
  data: boolean;
}

export interface AmountPageRequest {
  tasteId?: number;
  currentPage: number;
  pageSize: number;
}

export interface TasteAmountList {
  tasteId?: number;
  tasteName?: string;
  amountList?: AmountType[];
}

export interface TasteAmountListResponse extends ResponseData {
  data: TasteAmountList[];
}

// 定义全部接口返回数据都拥有ts类型
interface ResponseData {
  code: number;
  message: string;
}
